I thought it would be interesting to create some animations based on a few of the discussions in the book Space Charge Physics for Particle Accelerators by Ingo Hofmann. The scripts I used can be found here.

Incoherent space charge effects

Hofmann discriminates between incoherent effects that involve a single particle and coherent effects that involve all particles in the beam. Nonlinear resonances driven by higher-order magnetic multipoles are examples of incoherent effects. Expanding the transverse magnetic field in a power series results in the addition of nonlinear terms to the equation of motion:

$$ x'' + k(s)x = \sum_{i,j=1}^{\infty}{a_{i, j}x^i y^j}. $$

The coefficients $a_{i,j}$ may be periodic — a single magnet error in a ring, for example. To avoid resonant behavior, the individual particle tunes $\nu_{0x}$ and $\nu_{0y}$ should be carefully chosen to avoid the lines defined by $M_x\nu_{0x} + M_y\nu_{0y} = N$. Space charge can have the negative effect of decreasing the tunes such that they approach these lines. This is the primary concern in circular accelerators.

It’s also possible for the beam itself to provide these higher-order terms through its electric field. Consider a matched beam — one whose density profile repeats itself after one lattice period —and suppose we track a particle through the external focusing fields and the beam’s electric field without affecting the beam (this is an approximation). The beam’s electric field may be able to be expanded in an infinite series, and the periodicity of the coefficients in this expansion will lead to additional resonance lines that the particle should avoid: $M_x\nu_{x} + M_y\nu_{y} = N$, where $\nu_x$ and $\nu_y$ are the depressed tunes. This is called an incoherent space charge resonance.

Hofmann simulates the case $4\nu_x = 4\nu_y = 360$ deg. using a PIC simulation. An evenly spaced FODO lattice is used with zero-current tunes $\nu_{0x} = \nu_{0y} = 100$ deg. in both planes. The initial beam is a Gaussian distribution truncated at three standard deviations, the emittances are the same in both planes, and the rms beam dimensions are matched to the lattice using the KV envelope equations. Hofmann uses an elliptical longitudinal distribution, but I’ll use a uniform longitudinal distribution with no energy spread (coasting beam). The beam intensity is then chosen so that the depressed phase advances are $\nu_x = \nu_y = 92$ deg., just a bit above the resonance condition.1 The simulation proceeds by slowly decreasing the zero-current phase advances: $100$ deg. $\rightarrow$ $90$ deg. over 500 cells. In this way, the core of the beam should remain approximately matched to the lattice. Below is the evolution of the horizontal phase space projection as calculated by PyORBIT.

</input>

Also shown is the emittance — the rms area in phase space — which is calculated as

$$ \varepsilon_x = \sqrt{\langle{x^2}\rangle\langle{x’^2}\rangle - \langle{xx’}\rangle^2},$$

where $\langle\dots\rangle$ means the average over all the particles. There are four “islands” that have developed: this is characteristic of a fourth-order resonance. Based on the smooth change in the rms beam sizes and emittances, we can claim that the beam is well-matched and that this is an incoherent effect. It should be noted, though, that the distinction between incoherent and coherent is not always clear.

Coherent space charge effects

Coherent effects involve all particles in the beam and demand a self-consistent treatment. They’re generally difficult to analyze apart from simulation; however, the KV distribution does offer some insight. A well-known paper from 1983 — also by Hofmann — explores the stability of the KV distribution in a FODO lattice. The strategy was to start from the Vlasov equation, perturb the distribution function, and check for unbounded growth. The following plots were generated:

Each curve is for a specific value of the zero-current phase advance; the plot then shows the depressed phase advance as a function of the beam intensity. The thicker parts of the curves represent regions of instability called stop bands.

Envelope instability

We can think of an instability of order $n$ being correlated with an $x^n$ term in the space charge potential. Let's first look at the second-order instability, commonly called the 1:2 envelope instability since it occurs when the beam envelope oscillates at twice the single-particle frequency. Since it depends on an $x^2$ term in the space charge potential, this instability should show up in the envelope equations. For example, I chose a zero-current phase advance of 100 degrees and a depressed phase advance of 85 degrees, which is within a stopband. The following plot shows the rms beam sizes at the end of each cell obtained by integrating the envelope equations.

The beam is perfectly matched for around 120 cells, after which the mismatch oscillations ensue. It’s important to note that the charge density remains uniform. The phase advances in real linacs are generally kept below 90 deg. to avoid this envelope resonance.

Higher-order terms

What about the third-order and fourth-order instabilities? Technically, these just don’t appear in the KV distribution. But simulations always involve a finite number of particles, so there will be small non-uniformities in the beam density. These can grow over time, so the simulated KV distribution is affected by these higher-order instabilities. Setting the zero-current phase advance to 90 deg., a third-order and fourth-order instability should appear at a depressed phase advance of 45 degrees and 30 degrees, respectively, according to the stopband diagram. Here is the evolution of the horizontal phase space in these two cases for an initial KV, Waterbag, and Gaussian beam. (if H is an invariant of the motion without space charge, the distribution functions $f$ take the form: $f_{KV}$ ~ $\delta(1 - H)$, $f_{WB}$ ~ $\Theta(1 - H)$, $f_{Gauss}$ ~ $\exp(-H)$, where $\Theta$ is the step function.)

</input>

The order of the resonance is apparent in the symmetry of the phase space distribution (the number of “branches” extending from the core). Here is the emittance growth in each case:

The KV beam is the most violently affected by space charge. This is primarily because there is no tune spread in the KV distribution; thus, any resonance condition is going to affect the entire beam. A Gaussian, on the other hand, has a large tune spread; this tends to “wash out” instabilities because they only affect a fraction of the beam particles. The Waterbag distribution is somewhere in-between. These higher-order KV instabilities are not assumed to be dangerous since real beams are approximately Gaussian due to many other nonlinear processes.

1. I’m using the phase advance obtained from the KV envelope equations.